package com.cyf.plc.bean

import android.os.Parcelable
import androidx.annotation.Keep
import com.cyf.plc.model.PlcAttribute
import com.cyf.plc.model.PlcSubAttribute
import kotlinx.android.parcel.Parcelize

@Parcelize
@Keep
data class SystemStatus(
    //状态
    var temp: String,
    var humidity: String,
    var carbonDioxide: Float,
    var voc: Float,
    var pm25: Float,

    var power: Boolean,
    var leaveHome: Boolean,

    var modeStr: String,
    var modeValue: Float,

    var volumeValue: Float,
    var noFault:Boolean,

    //数值属性
    var tempPlcAttribute: PlcAttribute = PlcAttribute("", 0, "", "", ""),
    var humidityPlcAttribute: PlcAttribute = PlcAttribute("", 0, "", "", ""),
    var carbonDioxidePlcAttribute: PlcAttribute = PlcAttribute("", 0, "", "", ""),
    var vocPlcAttribute: PlcAttribute = PlcAttribute("", 0, "", "", ""),
    var pm25PlcAttribute: PlcAttribute = PlcAttribute("", 0, "", "", ""),
    //控制属性
    var powerPlcAttribute: PlcAttribute = PlcAttribute("", 0, "", "", ""),
    var leaveHomePlcAttribute: PlcAttribute = PlcAttribute("", 0, "", "", ""),
    var modePlcAttribute: PlcAttribute = PlcAttribute("", 0, "", "", ""),
    var volumePlcAttribute: PlcAttribute = PlcAttribute("", 0, "", "", ""),
    var faultPlcAttribute: PlcAttribute = PlcAttribute("", 0, "", "", ""),
    //子属性配置(制冷 制热 除湿 通风)
    var modeColdAttribute: PlcSubAttribute = PlcSubAttribute("", 0f, ""),
    var modeHotAttribute: PlcSubAttribute = PlcSubAttribute("", 0f, ""),
    var modeDehumidifyAttribute: PlcSubAttribute = PlcSubAttribute("", 0f, ""),
    var modeVentilationAttribute: PlcSubAttribute = PlcSubAttribute("", 0f, ""),
    //系统开关
    var powerOnAttribute: PlcSubAttribute = PlcSubAttribute("", 0f, ""),
    var powerOffAttribute: PlcSubAttribute = PlcSubAttribute("", 0f, ""),
    //离家开关
    var leaveHomeOnAttribute: PlcSubAttribute = PlcSubAttribute("", 0f, ""),
    var leaveHomeOffAttribute: PlcSubAttribute = PlcSubAttribute("", 0f, ""),
    //风量2 3
    var volume2Attribute: PlcSubAttribute = PlcSubAttribute("", 0f, ""),
    var volume3Attribute: PlcSubAttribute = PlcSubAttribute("", 0f, "")
) : Parcelable